const common = require('./webpack.common');
const path = require("path");
const { merge } = require('webpack-merge');
module.exports = merge(common,{
    mode: 'none',    
    devServer: {
        contentBase: path.join(__dirname, "dist"),
        compress: true,
        // historyApiFallback: true,
        port: 9000,
        hot: true,              // 开启模块热替换
        hotOnly: true           // 如果模块热替换功能不生效，则不刷新网页
    },  
    devtool: 'source-map',
})
